import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';

class HomeHeader extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Header(
      color: Theme.of(context).colorScheme.primaryVariant,
      text: 'Look Task',
    );
  }
}

class Header extends StatelessWidget {
  const Header({this.color, this.text});

  final Color? color;
  final String? text;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(
        top: 25,
        bottom: 11,
      ),
      child: Text(
        text!,
        style: Theme.of(context).textTheme.headline4!.apply(
              color: color,
              fontSizeDelta: 0,
              fontWeightDelta: 50,
              fontSizeFactor: 1,
              fontFamily: 'Flynnmono',
            ),
      ),
    );
  }
}
